export const tableOption = {
  border: true,
  index: true,
  indexLabel: "序号",
  stripe: true,
  menuAlign: "center",
  align: "center",
  searchMenuSpan: 6,
  searchEnter: true,
  column: [
    {
      type: "input",
      label: "设备编码",
      prop: "deviceSn",
      span: 12,
    },
    {
      type: "input",
      label: "设备名称",
      prop: "deviceName",
      span: 12
    },
    {
      type: "select",
      label: "采集方式",
      prop: "collectMode",
      span: 12,
      dicData: [{
        label: '数据平台',
        value: "数据平台"
      }, {
        label: '自定义',
        value: "自定义"
      }],
      rules: [
        {
          required: true,
          message: "请选择采集方式"
        }
      ],

    },
    {
      type: "textarea",
      label: "备注",
      prop: "remarks",
      span: 12
    },
    {
      type: "input",
      label: "创建人",
      prop: "createBy",
      span: 12,
      dicUrl: "/admin/user/getAllUser",
      props: {
        label: "name",
        value: "username"
      },
      dicMethod: "get",
      display: false,
      hide: false
    },
    {
      type: "input",
      label: "创建时间",
      prop: "createTime",
      span: 12,
      format: "yyyy-MM-dd HH:mm:ss",
      display: false,
      hide: false,
      valueFormat: "yyyy-MM-dd HH:mm:ss"
    },
    {
      type: "input",
      label: "修改人",
      prop: "updateBy",
      span: 12,
      dicUrl: "/admin/user/getAllUser",
      props: {
        label: "name",
        value: "username"
      },
      dicMethod: "get",
      display: false,
      hide: false
    },
    {
      type: "input",
      label: "更新时间",
      prop: "updateTime",
      span: 12,
      format: "yyyy-MM-dd HH:mm:ss",
      display: false,
      hide: false,
      valueFormat: "yyyy-MM-dd HH:mm:ss"
    }
  ]
}
